<html>
	<head>
		<title>Check Your Stuff</title>
	</head>
  <body>
  	{% if vehicle%}
  	<h3>Edit Vehicle</h3>
  	<form action="/add_vehicle/{{vehicle.key.id}}" method="post">
	{% else %}
  	<h3>Add Vehicle</h3>
  	<form action="/add_vehicle" method="post">
	{% endif %}
  		<table>
  			<tr>
  				<td>
			  		<label for="name">Name</label>
  				</td>
  				<td>
  				{% if vehicle %}
  					<input name="name" value="{{vehicle.name}}" type="text"/>
  				{% else %}
  					<input name="name" type="text"/>
  				{% endif %}
  				</td>
  			</tr>
 			<tr>
  				<td>
			  		<label for="make">Make</label>
  				</td>
  				<td>
   				{% if vehicle %}
  					<input name="make" value="{{vehicle.make}}"  type="text"/>
  				{% else %}
  					<input name="make" type="text"/>
  				{% endif %}
  				</td>
  			</tr>
  			<tr>
  				<td>
			  		<label for="model">Model</label>
  				</td>
  				<td>
  				{% if vehicle %}
			  		<input name="model" value="{{vehicle.model}}" type="text"/>
  				{% else %}
			  		<input name="model"  type="text"/>
  				{% endif %}
  				</td>
  			</tr>
  			<tr>
  				<td>
			  		<label for="year">Year</label>
  				</td>
  				<td>
  				{% if vehicle %}
			  		<input name="year" value="{{vehicle.year.year}}" type="text"/>
  				{% else %}
			  		<input name="year"  type="text"/>
  				{% endif %}
  				</td>
  			</tr>
  			<tr>
  				<td>
			  		<label for="color">Color</label>
  				</td>
  				<td>
  				{% if vehicle %}
			  		<input name="color" value="{{vehicle.color}}" type="text"/>
  				{% else %}
			  		<input name="color"  type="text"/>
  				{% endif %}
  				</td>
  			</tr>
  			<tr>
  				<td>
			  		<label for="license_plate">License Plate</label>
  				</td>
  				<td>
  				{% if vehicle %}
			  		<input name="license_plate" value="{{vehicle.license_plate}}" type="text"/>
  				{% else %}
			  		<input name="license_plate"  type="text"/>
  				{% endif %}
  				</td>
  			</tr>
  			<tr>
  				<td colspan="2">
			  		<input name="action" type="submit" value="Submit" />
			  		<a href="/home">Cancel</a>
  				</td>
  			</tr>
  		</table>
  	</form>
  </body>
</html>